module.exports = {
  publicPath: './',
  outputDir: 'dist',
  assetsDir: 'static',
  indexPath: 'index.html',

  devServer: {
    open: true,
    host: 'localhost',
    port: '8081',
    https: false,
    hotOnly: false,
    proxy: {
      '/url/': {
        // target: 'http://cyteam.org.cn/api/',//http://chaoyang.nxers.com/api/',
        //target: 'http://chaoyang.xiaoliang666.top/api/',//http://chaoyang.nxers.com/api/',
        target: 'http://chaoyang.nxers.com/api/',//http://chaoyang.nxers.com/api/',
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          '^/url': ''
        }
      }
    }
  },

  // webpack配置
  configureWebpack: {
    performance: {
      hints: 'warning',
      maxEntrypointSize: 500000000,
      maxAssetSize: 300000000,
      assetFilter: function (assetFilename) {
        return assetFilename.endsWith('.js')
      }
    }
  }
}
